<?php

/**
 * CelebrioPeople Person
 *
 * @copyright  Copyright (c) 2011 Celebrio Software
 * @package    CelebrioPeople
 */
namespace ApplicationsModule\PeopleModule;

use Celebrio\Core\IModuleInit;
use Celebrio\Core\DummyInit;

use \Celebrio\AccessControl\UserManagement;

/**
 * Facebook module within People application initialization script.
 * 
 * @author pavel
 */
class FacebookInit extends DummyInit implements IModuleInit {

    public function init(array $configuration) {
        parent::init($configuration);

        UserManagement::$creation_hooks[] = array(
            "contact_service" => Facebook::FACEBOOK,
            "requires" => array("base"),
            "provides" => array(),
            "method" => "createPerson"
        );

    }
}